package com.example.light.system.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@ApiModel(value = "所有设备信息")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class allDeviceList {
    @ApiModelProperty("设备编号")
    private String deviceNumber;

    @ApiModelProperty("设备名称")
    private String deviceName;

    @ApiModelProperty("设备类型")
    private String deviceType;

    @ApiModelProperty("设备mac")
    private String deviceMac;

    @ApiModelProperty("教室名称")
    private String roomName;

    @ApiModelProperty("设备工作状态")
    private Integer deviceWorkStatus;

    @ApiModelProperty("设备状态")
    private Integer deviceStatus;

    @ApiModelProperty("设备备注")
    private String deviceNote;

    @ApiModelProperty("经度")
    private Double deviceLongitude;

    @ApiModelProperty("维度")
    private Double deviceLatitude;

    @ApiModelProperty("设备在线时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deviceOnlineTime;
}
